/*	$id:malloc.h	V1.0	2001/11/12	*/

/*******************************************************************************
 *	This source code has been made available to you by EPSON on an AS-IS
 *	basis. Anyone receiving this source is licensed under EPSON 
 *	copyrights to use it in any way he or she deems fit, including 
 *	copying it, modifying it, compiling it, and redistributing it either 
 *	with or without modifications.
 *
 *	Any person who transfers this source code or any derivative work 
 *	must include the EPSON copyright notice, this paragraph, and the 
 *	preceding two paragraphs in the transferred software.
 *
 *	COPYRIGHT	EPSON CORPORATION	2001
 *	LICENSED MATERIAL	-	PROGRAM PROPERTY OF EPSON
 ******************************************************************************/

/******************************************************************************
 *	File	:	malloc.h
 *	MODULE	:	
 *
 *	PURPOSE	:	redefine the malloc function
 *
 *	AUTHOR	:	xxlin
 *	GROUP	:	Wap Group
 *	DATE CREATED			:	2002/01/16
 *	REFERENCE DOCUMENT ID	:	 
 *	MODIFICATION:
 *		DATE		userName		Description	
 *      2002/01/16  xxlin           Create
 *****************************************************************************/

#ifndef _MALLOC_H
#define _MALLOC_H

#include "sysCOMM.h"

#ifdef __cplusplus
extern "C" {
#endif



#define malloc 	(*tpDL_CRTLTable->CRTL_malloc)
#define free   	(*tpDL_CRTLTable->CRTL_free)
#define calloc 	(*tpDL_CRTLTable->CRTL_calloc)
#define realloc	(*tpDL_CRTLTable->CRTL_realloc)
#define ansi_InitMalloc	(*tpDL_CRTLTable->CRTL_ansi_InitMalloc)

/* the functions that user defined ,which is used by lib functions 
#define read   (*tpDL_CRTLTable->CRTL_read)
#define write  (*tpDL_CRTLTable->CRTL_write)
#define _exit  (*tpDL_CRTLTable->CRTL_exit)
*/ 

#ifdef __cplusplus
}
#endif

#endif	/* For ifdef  _MALLOC_H */